package com.zhang.satokendemo.config;

import lombok.Getter;

@Getter
public enum ApiCodeEnum {
    SUCCESS(200,"success"),
    FAIL(500,"fail"),
    HTTP_STATUS_200(200, "ok"),
    HTTP_STATUS_400(400, "request error"),
    HTTP_STATUS_401(401, "no authentication"),
    HTTP_STATUS_403(403, "no authorities"),
    HTTP_STATUS_500(500, "server error");
    private final Integer code;
    private final String message;

    ApiCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
